﻿using System;

namespace DAPNet
{
    public class DefaultSampleConverterFactory : SampleConverterFactory
    {
        private const int BitDepth8Bit = 8;

        private const int BitDepth16Bit = 16;


        public override SampleConverter GetSampleConverter(int bitDepth)
        {
            switch (bitDepth)
            {
                case BitDepth8Bit:
                    return new SampleConverter8Bit();
                case BitDepth16Bit:
                    return new SampleConverter16Bit();
                default:
                    // TODO: EXCEPTION CONSIDERATION.
                    throw new ArgumentException();
            }
        }
    }
}
